home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / create4a / frmmain.frm (.txt) next >
Encoding:
Visual Basic Form  |  1999-10-12  |  33.5 KB  |  882 lines

  1. VERSION 5.00
  2. Begin VB.Form frmMain 
  3.    BackColor       =   &H00000000&
  4.    Caption         =   "Tic Tac Toe Multiplayer"
  5.    ClientHeight    =   5385
  6.    ClientLeft      =   5145
  7.    ClientTop       =   2715
  8.    ClientWidth     =   5295
  9.    ControlBox      =   0   'False
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   5385
  12.    ScaleWidth      =   5295
  13.    StartUpPosition =   2  'Bildschirmmitte
  14.    Begin VB.CommandButton Command3 
  15.       Caption         =   "Exit"
  16.       BeginProperty Font 
  17.          Name            =   "MS Sans Serif"
  18.          Size            =   8.25
  19.          Charset         =   0
  20.          Weight          =   700
  21.          Underline       =   0   'False
  22.          Italic          =   0   'False
  23.          Strikethrough   =   0   'False
  24.       EndProperty
  25.       Height          =   495
  26.       Left            =   2760
  27.       TabIndex        =   11
  28.       Top             =   4560
  29.       Width           =   1335
  30.    End
  31.    Begin VB.CommandButton Command1 
  32.       Caption         =   "Play again!!!"
  33.       BeginProperty Font 
  34.          Name            =   "MS Sans Serif"
  35.          Size            =   8.25
  36.          Charset         =   0
  37.          Weight          =   700
  38.          Underline       =   0   'False
  39.          Italic          =   0   'False
  40.          Strikethrough   =   0   'False
  41.       EndProperty
  42.       Height          =   495
  43.       Left            =   1080
  44.       TabIndex        =   10
  45.       Top             =   4560
  46.       Width           =   1335
  47.    End
  48.    Begin VB.TextBox Text9 
  49.       Alignment       =   2  'Zentriert
  50.       BeginProperty Font 
  51.          Name            =   "Arial"
  52.          Size            =   24
  53.          Charset         =   0
  54.          Weight          =   700
  55.          Underline       =   0   'False
  56.          Italic          =   0   'False
  57.          Strikethrough   =   0   'False
  58.       EndProperty
  59.       Height          =   855
  60.       Left            =   3240
  61.       TabIndex        =   8
  62.       Top             =   3240
  63.       Width           =   855
  64.    End
  65.    Begin VB.TextBox Text8 
  66.       Alignment       =   2  'Zentriert
  67.       BeginProperty Font 
  68.          Name            =   "Arial"
  69.          Size            =   24
  70.          Charset         =   0
  71.          Weight          =   700
  72.          Underline       =   0   'False
  73.          Italic          =   0   'False
  74.          Strikethrough   =   0   'False
  75.       EndProperty
  76.       Height          =   855
  77.       Left            =   2160
  78.       TabIndex        =   7
  79.       Top             =   3240
  80.       Width           =   855
  81.    End
  82.    Begin VB.TextBox Text7 
  83.       Alignment       =   2  'Zentriert
  84.       BeginProperty Font 
  85.          Name            =   "Arial"
  86.          Size            =   24
  87.          Charset         =   0
  88.          Weight          =   700
  89.          Underline       =   0   'False
  90.          Italic          =   0   'False
  91.          Strikethrough   =   0   'False
  92.       EndProperty
  93.       Height          =   855
  94.       Left            =   1080
  95.       TabIndex        =   6
  96.       Top             =   3240
  97.       Width           =   855
  98.    End
  99.    Begin VB.TextBox Text6 
  100.       Alignment       =   2  'Zentriert
  101.       BeginProperty Font 
  102.          Name            =   "Arial"
  103.          Size            =   24
  104.          Charset         =   0
  105.          Weight          =   700
  106.          Underline       =   0   'False
  107.          Italic          =   0   'False
  108.          Strikethrough   =   0   'False
  109.       EndProperty
  110.       Height          =   855
  111.       Left            =   3240
  112.       TabIndex        =   5
  113.       Top             =   2160
  114.       Width           =   855
  115.    End
  116.    Begin VB.TextBox Text5 
  117.       Alignment       =   2  'Zentriert
  118.       BeginProperty Font 
  119.          Name            =   "Arial"
  120.          Size            =   24
  121.          Charset         =   0
  122.          Weight          =   700
  123.          Underline       =   0   'False
  124.          Italic          =   0   'False
  125.          Strikethrough   =   0   'False
  126.       EndProperty
  127.       Height          =   855
  128.       Left            =   2160
  129.       TabIndex        =   4
  130.       Top             =   2160
  131.       Width           =   855
  132.    End
  133.    Begin VB.TextBox Text4 
  134.       Alignment       =   2  'Zentriert
  135.       BeginProperty Font 
  136.          Name            =   "Arial"
  137.          Size            =   24
  138.          Charset         =   0
  139.          Weight          =   700
  140.          Underline       =   0   'False
  141.          Italic          =   0   'False
  142.          Strikethrough   =   0   'False
  143.       EndProperty
  144.       Height          =   855
  145.       Left            =   1080
  146.       TabIndex        =   3
  147.       Top             =   2160
  148.       Width           =   855
  149.    End
  150.    Begin VB.TextBox Text3 
  151.       Alignment       =   2  'Zentriert
  152.       BeginProperty Font 
  153.          Name            =   "Arial"
  154.          Size            =   24
  155.          Charset         =   0
  156.          Weight          =   700
  157.          Underline       =   0   'False
  158.          Italic          =   0   'False
  159.          Strikethrough   =   0   'False
  160.       EndProperty
  161.       Height          =   855
  162.       Left            =   3240
  163.       TabIndex        =   2
  164.       Top             =   1080
  165.       Width           =   855
  166.    End
  167.    Begin VB.TextBox Text2 
  168.       Alignment       =   2  'Zentriert
  169.       BeginProperty Font 
  170.          Name            =   "Arial"
  171.          Size            =   24
  172.          Charset         =   0
  173.          Weight          =   700
  174.          Underline       =   0   'False
  175.          Italic          =   0   'False
  176.          Strikethrough   =   0   'False
  177.       EndProperty
  178.       Height          =   855
  179.       Left            =   2160
  180.       TabIndex        =   1
  181.       Top             =   1080
  182.       Width           =   855
  183.    End
  184.    Begin VB.TextBox Text1 
  185.       Alignment       =   2  'Zentriert
  186.       BeginProperty Font 
  187.          Name            =   "Arial"
  188.          Size            =   24
  189.          Charset         =   0
  190.          Weight          =   700
  191.          Underline       =   0   'False
  192.          Italic          =   0   'False
  193.          Strikethrough   =   0   'False
  194.       EndProperty
  195.       ForeColor       =   &H00000000&
  196.       Height          =   855
  197.       Left            =   1080
  198.       TabIndex        =   0
  199.       Top             =   1080
  200.       Width           =   855
  201.    End
  202.    Begin VB.Label Label1 
  203.       Alignment       =   2  'Zentriert
  204.       BackStyle       =   0  'Transparent
  205.       Caption         =   "Tic Tac Toe Multiplayer"
  206.       BeginProperty Font 
  207.          Name            =   "MS Sans Serif"
  208.          Size            =   24
  209.          Charset         =   0
  210.          Weight          =   400
  211.          Underline       =   0   'False
  212.          Italic          =   0   'False
  213.          Strikethrough   =   0   'False
  214.       EndProperty
  215.       ForeColor       =   &H00FF0000&
  216.       Height          =   615
  217.       Left            =   120
  218.       TabIndex        =   9
  219.       Top             =   120
  220.       Width           =   5055
  221.    End
  222.    Begin VB.Shape Shape2 
  223.       FillColor       =   &H00FF0000&
  224.       FillStyle       =   0  'Ausgef
  225.       Height          =   255
  226.       Index           =   1
  227.       Left            =   1080
  228.       Top             =   3000
  229.       Width           =   3015
  230.    End
  231.    Begin VB.Shape Shape2 
  232.       FillColor       =   &H00FF0000&
  233.       FillStyle       =   0  'Ausgef
  234.       Height          =   255
  235.       Index           =   0
  236.       Left            =   1080
  237.       Top             =   1920
  238.       Width           =   3015
  239.    End
  240.    Begin VB.Shape Shape1 
  241.       FillColor       =   &H00FF0000&
  242.       FillStyle       =   0  'Ausgef
  243.       Height          =   3015
  244.       Index           =   1
  245.       Left            =   3000
  246.       Top             =   1080
  247.       Width           =   255
  248.    End
  249.    Begin VB.Shape Shape1 
  250.       FillColor       =   &H00FF0000&
  251.       FillStyle       =   0  'Ausgef
  252.       Height          =   3015
  253.       Index           =   0
  254.       Left            =   1920
  255.       Top             =   1080
  256.       Width           =   255
  257.    End
  258. Attribute VB_Name = "frmMain"
  259. Attribute VB_GlobalNameSpace = False
  260. Attribute VB_Creatable = False
  261. Attribute VB_PredeclaredId = True
  262. Attribute VB_Exposed = False
  263. Private Sub Command1_Click()
  264. Text1.Text = ""
  265. Text2.Text = ""
  266. Text3.Text = ""
  267. Text4.Text = ""
  268. Text5.Text = ""
  269. Text6.Text = ""
  270. Text7.Text = ""
  271. Text8.Text = ""
  272. Text9.Text = ""
  273. End Sub
  274. Private Sub Command3_Click()
  275. End Sub
  276. Private Sub Form_Load()
  277. MsgBox ("Created by Michael Hauck, for questions send an email at michaelhck@yahoo.com")
  278. End Sub
  279. Private Sub Text1_Change()
  280. If Text1.Text = "x" And Text2.Text = "x" And Text3.Text = "x" Then
  281. frmwon.Show
  282. frmwon.Label1.Caption = "X is the winner!!!"
  283. frmwon.Caption = "X is the winner"
  284. ElseIf Text1.Text = "x" And Text4.Text = "x" And Text7.Text = "x" Then
  285. frmwon.Show
  286. frmwon.Label1.Caption = "X is the winner!!!"
  287. frmwon.Caption = "X is the winner"
  288. ElseIf Text7.Text = "x" And Text8.Text = "x" And Text9.Text = "x" Then
  289. frmwon.Show
  290. frmwon.Label1.Caption = "X is the winner!!!"
  291. frmwon.Caption = "X is the winner"
  292. ElseIf Text9.Text = "x" And Text6.Text = "x" And Text3.Text = "x" Then
  293. frmwon.Show
  294. frmwon.Label1.Caption = "X is the winner!!!"
  295. frmwon.Caption = "X is the winner"
  296. ElseIf Text1.Text = "x" And Text5.Text = "x" And Text9.Text = "x" Then
  297. frmwon.Show
  298. frmwon.Label1.Caption = "X is the winner!!!"
  299. frmwon.Caption = "X is the winner"
  300. ElseIf Text3.Text = "x" And Text5.Text = "x" And Text7.Text = "x" Then
  301. frmwon.Show
  302. frmwon.Label1.Caption = "X is the winner!!!"
  303. frmwon.Caption = "X is the winner"
  304. ElseIf Text2.Text = "x" And Text5.Text = "x" And Text8.Text = "x" Then
  305. frmwon.Show
  306. frmwon.Label1.Caption = "X is the winner!!!"
  307. frmwon.Caption = "X is the winner"
  308. ElseIf Text4.Text = "x" And Text5.Text = "x" And Text6.Text = "x" Then
  309. frmwon.Show
  310. frmwon.Label1.Caption = "X is the winner!!!"
  311. frmwon.Caption = "X is the winner"
  312. ElseIf Text1.Text = "o" And Text2.Text = "o" And Text3.Text = "o" Then
  313. frmwon.Show
  314. frmwon.Label1.Caption = "O is the winner!!!"
  315. frmwon.Caption = "O is the winner!!!"
  316. ElseIf Text1.Text = "o" And Text4.Text = "o" And Text7.Text = "o" Then
  317. frmwon.Show
  318. frmwon.Label1.Caption = "O is the winner!!!"
  319. frmwon.Caption = "O is the winner!!!"
  320. ElseIf Text7.Text = "o" And Text8.Text = "o" And Text9.Text = "o" Then
  321. frmwon.Show
  322. frmwon.Label1.Caption = "O is the winner!!!"
  323. frmwon.Caption = "O is the winner!!!"
  324. ElseIf Text9.Text = "o" And Text6.Text = "o" And Text3.Text = "o" Then
  325. frmwon.Show
  326. frmwon.Label1.Caption = "O is the winner!!!"
  327. frmwon.Caption = "O is the winner!!!"
  328. ElseIf Text1.Text = "o" And Text5.Text = "o" And Text9.Text = "o" Then
  329. frmwon.Show
  330. frmwon.Label1.Caption = "O is the winner!!!"
  331. frmwon.Caption = "O is the winner!!!"
  332. ElseIf Text3.Text = "o" And Text5.Text = "o" And Text7.Text = "o" Then
  333. frmwon.Show
  334. frmwon.Label1.Caption = "O is the winner!!!"
  335. frmwon.Caption = "O is the winner!!!"
  336. ElseIf Text2.Text = "o" And Text5.Text = "o" And Text8.Text = "o" Then
  337. frmwon.Show
  338. frmwon.Label1.Caption = "O is the winner!!!"
  339. frmwon.Caption = "O is the winner!!!"
  340. ElseIf Text4.Text = "o" And Text5.Text = "o" And Text6.Text = "o" Then
  341. frmwon.Show
  342. frmwon.Label1.Caption = "O is the winner!!!"
  343. frmwon.Caption = "O is the winner!!!"
  344. End If
  345. End Sub
  346. Private Sub Text2_Change()
  347. If Text1.Text = "x" And Text2.Text = "x" And Text3.Text = "x" Then
  348. frmwon.Show
  349. frmwon.Label1.Caption = "X is the winner!!!"
  350. frmwon.Caption = "X is the winner"
  351. ElseIf Text1.Text = "x" And Text4.Text = "x" And Text7.Text = "x" Then
  352. frmwon.Show
  353. frmwon.Label1.Caption = "X is the winner!!!"
  354. frmwon.Caption = "X is the winner"
  355. ElseIf Text7.Text = "x" And Text8.Text = "x" And Text9.Text = "x" Then
  356. frmwon.Show
  357. frmwon.Label1.Caption = "X is the winner!!!"
  358. frmwon.Caption = "X is the winner"
  359. ElseIf Text9.Text = "x" And Text6.Text = "x" And Text3.Text = "x" Then
  360. frmwon.Show
  361. frmwon.Label1.Caption = "X is the winner!!!"
  362. frmwon.Caption = "X is the winner"
  363. ElseIf Text1.Text = "x" And Text5.Text = "x" And Text9.Text = "x" Then
  364. frmwon.Show
  365. frmwon.Label1.Caption = "X is the winner!!!"
  366. frmwon.Caption = "X is the winner"
  367. ElseIf Text3.Text = "x" And Text5.Text = "x" And Text7.Text = "x" Then
  368. frmwon.Show
  369. frmwon.Label1.Caption = "X is the winner!!!"
  370. frmwon.Caption = "X is the winner"
  371. ElseIf Text2.Text = "x" And Text5.Text = "x" And Text8.Text = "x" Then
  372. frmwon.Show
  373. frmwon.Label1.Caption = "X is the winner!!!"
  374. frmwon.Caption = "X is the winner"
  375. ElseIf Text4.Text = "x" And Text5.Text = "x" And Text6.Text = "x" Then
  376. frmwon.Show
  377. frmwon.Label1.Caption = "X is the winner!!!"
  378. frmwon.Caption = "X is the winner"
  379. ElseIf Text1.Text = "o" And Text2.Text = "o" And Text3.Text = "o" Then
  380. frmwon.Show
  381. frmwon.Label1.Caption = "O is the winner!!!"
  382. frmwon.Caption = "O is the winner!!!"
  383. ElseIf Text1.Text = "o" And Text4.Text = "o" And Text7.Text = "o" Then
  384. frmwon.Show
  385. frmwon.Label1.Caption = "O is the winner!!!"
  386. frmwon.Caption = "O is the winner!!!"
  387. ElseIf Text7.Text = "o" And Text8.Text = "o" And Text9.Text = "o" Then
  388. frmwon.Show
  389. frmwon.Label1.Caption = "O is the winner!!!"
  390. frmwon.Caption = "O is the winner!!!"
  391. ElseIf Text9.Text = "o" And Text6.Text = "o" And Text3.Text = "o" Then
  392. frmwon.Show
  393. frmwon.Label1.Caption = "O is the winner!!!"
  394. frmwon.Caption = "O is the winner!!!"
  395. ElseIf Text1.Text = "o" And Text5.Text = "o" And Text9.Text = "o" Then
  396. frmwon.Show
  397. frmwon.Label1.Caption = "O is the winner!!!"
  398. frmwon.Caption = "O is the winner!!!"
  399. ElseIf Text3.Text = "o" And Text5.Text = "o" And Text7.Text = "o" Then
  400. frmwon.Show
  401. frmwon.Label1.Caption = "O is the winner!!!"
  402. frmwon.Caption = "O is the winner!!!"
  403. ElseIf Text2.Text = "o" And Text5.Text = "o" And Text8.Text = "o" Then
  404. frmwon.Show
  405. frmwon.Label1.Caption = "O is the winner!!!"
  406. frmwon.Caption = "O is the winner!!!"
  407. ElseIf Text4.Text = "o" And Text5.Text = "o" And Text6.Text = "o" Then
  408. frmwon.Show
  409. frmwon.Label1.Caption = "O is the winner!!!"
  410. frmwon.Caption = "O is the winner!!!"
  411. End If
  412. End Sub
  413. Private Sub Text3_Change()
  414. If Text1.Text = "x" And Text2.Text = "x" And Text3.Text = "x" Then
  415. frmwon.Show
  416. frmwon.Label1.Caption = "X is the winner!!!"
  417. frmwon.Caption = "X is the winner"
  418. ElseIf Text1.Text = "x" And Text4.Text = "x" And Text7.Text = "x" Then
  419. frmwon.Show
  420. frmwon.Label1.Caption = "X is the winner!!!"
  421. frmwon.Caption = "X is the winner"
  422. ElseIf Text7.Text = "x" And Text8.Text = "x" And Text9.Text = "x" Then
  423. frmwon.Show
  424. frmwon.Label1.Caption = "X is the winner!!!"
  425. frmwon.Caption = "X is the winner"
  426. ElseIf Text9.Text = "x" And Text6.Text = "x" And Text3.Text = "x" Then
  427. frmwon.Show
  428. frmwon.Label1.Caption = "X is the winner!!!"
  429. frmwon.Caption = "X is the winner"
  430. ElseIf Text1.Text = "x" And Text5.Text = "x" And Text9.Text = "x" Then
  431. frmwon.Show
  432. frmwon.Label1.Caption = "X is the winner!!!"
  433. frmwon.Caption = "X is the winner"
  434. ElseIf Text3.Text = "x" And Text5.Text = "x" And Text7.Text = "x" Then
  435. frmwon.Show
  436. frmwon.Label1.Caption = "X is the winner!!!"
  437. frmwon.Caption = "X is the winner"
  438. ElseIf Text2.Text = "x" And Text5.Text = "x" And Text8.Text = "x" Then
  439. frmwon.Show
  440. frmwon.Label1.Caption = "X is the winner!!!"
  441. frmwon.Caption = "X is the winner"
  442. ElseIf Text4.Text = "x" And Text5.Text = "x" And Text6.Text = "x" Then
  443. frmwon.Show
  444. frmwon.Label1.Caption = "X is the winner!!!"
  445. frmwon.Caption = "X is the winner"
  446. ElseIf Text1.Text = "o" And Text2.Text = "o" And Text3.Text = "o" Then
  447. frmwon.Show
  448. frmwon.Label1.Caption = "O is the winner!!!"
  449. frmwon.Caption = "O is the winner!!!"
  450. ElseIf Text1.Text = "o" And Text4.Text = "o" And Text7.Text = "o" Then
  451. frmwon.Show
  452. frmwon.Label1.Caption = "O is the winner!!!"
  453. frmwon.Caption = "O is the winner!!!"
  454. ElseIf Text7.Text = "o" And Text8.Text = "o" And Text9.Text = "o" Then
  455. frmwon.Show
  456. frmwon.Label1.Caption = "O is the winner!!!"
  457. frmwon.Caption = "O is the winner!!!"
  458. ElseIf Text9.Text = "o" And Text6.Text = "o" And Text3.Text = "o" Then
  459. frmwon.Show
  460. frmwon.Label1.Caption = "O is the winner!!!"
  461. frmwon.Caption = "O is the winner!!!"
  462. ElseIf Text1.Text = "o" And Text5.Text = "o" And Text9.Text = "o" Then
  463. frmwon.Show
  464. frmwon.Label1.Caption = "O is the winner!!!"
  465. frmwon.Caption = "O is the winner!!!"
  466. ElseIf Text3.Text = "o" And Text5.Text = "o" And Text7.Text = "o" Then
  467. frmwon.Show
  468. frmwon.Label1.Caption = "O is the winner!!!"
  469. frmwon.Caption = "O is the winner!!!"
  470. ElseIf Text2.Text = "o" And Text5.Text = "o" And Text8.Text = "o" Then
  471. frmwon.Show
  472. frmwon.Label1.Caption = "O is the winner!!!"
  473. frmwon.Caption = "O is the winner!!!"
  474. ElseIf Text4.Text = "o" And Text5.Text = "o" And Text6.Text = "o" Then
  475. frmwon.Show
  476. frmwon.Label1.Caption = "O is the winner!!!"
  477. frmwon.Caption = "O is the winner!!!"
  478. End If
  479. End Sub
  480. Private Sub Text4_Change()
  481. If Text1.Text = "x" And Text2.Text = "x" And Text3.Text = "x" Then
  482. frmwon.Show
  483. frmwon.Label1.Caption = "X is the winner!!!"
  484. frmwon.Caption = "X is the winner"
  485. ElseIf Text1.Text = "x" And Text4.Text = "x" And Text7.Text = "x" Then
  486. frmwon.Show
  487. frmwon.Label1.Caption = "X is the winner!!!"
  488. frmwon.Caption = "X is the winner"
  489. ElseIf Text7.Text = "x" And Text8.Text = "x" And Text9.Text = "x" Then
  490. frmwon.Show
  491. frmwon.Label1.Caption = "X is the winner!!!"
  492. frmwon.Caption = "X is the winner"
  493. ElseIf Text9.Text = "x" And Text6.Text = "x" And Text3.Text = "x" Then
  494. frmwon.Show
  495. frmwon.Label1.Caption = "X is the winner!!!"
  496. frmwon.Caption = "X is the winner"
  497. ElseIf Text1.Text = "x" And Text5.Text = "x" And Text9.Text = "x" Then
  498. frmwon.Show
  499. frmwon.Label1.Caption = "X is the winner!!!"
  500. frmwon.Caption = "X is the winner"
  501. ElseIf Text3.Text = "x" And Text5.Text = "x" And Text7.Text = "x" Then
  502. frmwon.Show
  503. frmwon.Label1.Caption = "X is the winner!!!"
  504. frmwon.Caption = "X is the winner"
  505. ElseIf Text2.Text = "x" And Text5.Text = "x" And Text8.Text = "x" Then
  506. frmwon.Show
  507. frmwon.Label1.Caption = "X is the winner!!!"
  508. frmwon.Caption = "X is the winner"
  509. ElseIf Text4.Text = "x" And Text5.Text = "x" And Text6.Text = "x" Then
  510. frmwon.Show
  511. frmwon.Label1.Caption = "X is the winner!!!"
  512. frmwon.Caption = "X is the winner"
  513. ElseIf Text1.Text = "o" And Text2.Text = "o" And Text3.Text = "o" Then
  514. frmwon.Show
  515. frmwon.Label1.Caption = "O is the winner!!!"
  516. frmwon.Caption = "O is the winner!!!"
  517. ElseIf Text1.Text = "o" And Text4.Text = "o" And Text7.Text = "o" Then
  518. frmwon.Show
  519. frmwon.Label1.Caption = "O is the winner!!!"
  520. frmwon.Caption = "O is the winner!!!"
  521. ElseIf Text7.Text = "o" And Text8.Text = "o" And Text9.Text = "o" Then
  522. frmwon.Show
  523. frmwon.Label1.Caption = "O is the winner!!!"
  524. frmwon.Caption = "O is the winner!!!"
  525. ElseIf Text9.Text = "o" And Text6.Text = "o" And Text3.Text = "o" Then
  526. frmwon.Show
  527. frmwon.Label1.Caption = "O is the winner!!!"
  528. frmwon.Caption = "O is the winner!!!"
  529. ElseIf Text1.Text = "o" And Text5.Text = "o" And Text9.Text = "o" Then
  530. frmwon.Show
  531. frmwon.Label1.Caption = "O is the winner!!!"
  532. frmwon.Caption = "O is the winner!!!"
  533. ElseIf Text3.Text = "o" And Text5.Text = "o" And Text7.Text = "o" Then
  534. frmwon.Show
  535. frmwon.Label1.Caption = "O is the winner!!!"
  536. frmwon.Caption = "O is the winner!!!"
  537. ElseIf Text2.Text = "o" And Text5.Text = "o" And Text8.Text = "o" Then
  538. frmwon.Show
  539. frmwon.Label1.Caption = "O is the winner!!!"
  540. frmwon.Caption = "O is the winner!!!"
  541. ElseIf Text4.Text = "o" And Text5.Text = "o" And Text6.Text = "o" Then
  542. frmwon.Show
  543. frmwon.Label1.Caption = "O is the winner!!!"
  544. frmwon.Caption = "O is the winner!!!"
  545. End If
  546. End Sub
  547. Private Sub Text5_Change()
  548. If Text1.Text = "x" And Text2.Text = "x" And Text3.Text = "x" Then
  549. frmwon.Show
  550. frmwon.Label1.Caption = "X is the winner!!!"
  551. frmwon.Caption = "X is the winner"
  552. ElseIf Text1.Text = "x" And Text4.Text = "x" And Text7.Text = "x" Then
  553. frmwon.Show
  554. frmwon.Label1.Caption = "X is the winner!!!"
  555. frmwon.Caption = "X is the winner"
  556. ElseIf Text7.Text = "x" And Text8.Text = "x" And Text9.Text = "x" Then
  557. frmwon.Show
  558. frmwon.Label1.Caption = "X is the winner!!!"
  559. frmwon.Caption = "X is the winner"
  560. ElseIf Text9.Text = "x" And Text6.Text = "x" And Text3.Text = "x" Then
  561. frmwon.Show
  562. frmwon.Label1.Caption = "X is the winner!!!"
  563. frmwon.Caption = "X is the winner"
  564. ElseIf Text1.Text = "x" And Text5.Text = "x" And Text9.Text = "x" Then
  565. frmwon.Show
  566. frmwon.Label1.Caption = "X is the winner!!!"
  567. frmwon.Caption = "X is the winner"
  568. ElseIf Text3.Text = "x" And Text5.Text = "x" And Text7.Text = "x" Then
  569. frmwon.Show
  570. frmwon.Label1.Caption = "X is the winner!!!"
  571. frmwon.Caption = "X is the winner"
  572. ElseIf Text2.Text = "x" And Text5.Text = "x" And Text8.Text = "x" Then
  573. frmwon.Show
  574. frmwon.Label1.Caption = "X is the winner!!!"
  575. frmwon.Caption = "X is the winner"
  576. ElseIf Text4.Text = "x" And Text5.Text = "x" And Text6.Text = "x" Then
  577. frmwon.Show
  578. frmwon.Label1.Caption = "X is the winner!!!"
  579. frmwon.Caption = "X is the winner"
  580. ElseIf Text1.Text = "o" And Text2.Text = "o" And Text3.Text = "o" Then
  581. frmwon.Show
  582. frmwon.Label1.Caption = "O is the winner!!!"
  583. frmwon.Caption = "O is the winner!!!"
  584. ElseIf Text1.Text = "o" And Text4.Text = "o" And Text7.Text = "o" Then
  585. frmwon.Show
  586. frmwon.Label1.Caption = "O is the winner!!!"
  587. frmwon.Caption = "O is the winner!!!"
  588. ElseIf Text7.Text = "o" And Text8.Text = "o" And Text9.Text = "o" Then
  589. frmwon.Show
  590. frmwon.Label1.Caption = "O is the winner!!!"
  591. frmwon.Caption = "O is the winner!!!"
  592. ElseIf Text9.Text = "o" And Text6.Text = "o" And Text3.Text = "o" Then
  593. frmwon.Show
  594. frmwon.Label1.Caption = "O is the winner!!!"
  595. frmwon.Caption = "O is the winner!!!"
  596. ElseIf Text1.Text = "o" And Text5.Text = "o" And Text9.Text = "o" Then
  597. frmwon.Show
  598. frmwon.Label1.Caption = "O is the winner!!!"
  599. frmwon.Caption = "O is the winner!!!"
  600. ElseIf Text3.Text = "o" And Text5.Text = "o" And Text7.Text = "o" Then
  601. frmwon.Show
  602. frmwon.Label1.Caption = "O is the winner!!!"
  603. frmwon.Caption = "O is the winner!!!"
  604. ElseIf Text2.Text = "o" And Text5.Text = "o" And Text8.Text = "o" Then
  605. frmwon.Show
  606. frmwon.Label1.Caption = "O is the winner!!!"
  607. frmwon.Caption = "O is the winner!!!"
  608. ElseIf Text4.Text = "o" And Text5.Text = "o" And Text6.Text = "o" Then
  609. frmwon.Show
  610. frmwon.Label1.Caption = "O is the winner!!!"
  611. frmwon.Caption = "O is the winner!!!"
  612. End If
  613. End Sub
  614. Private Sub Text6_Change()
  615. If Text1.Text = "x" And Text2.Text = "x" And Text3.Text = "x" Then
  616. frmwon.Show
  617. frmwon.Label1.Caption = "X is the winner!!!"
  618. frmwon.Caption = "X is the winner"
  619. ElseIf Text1.Text = "x" And Text4.Text = "x" And Text7.Text = "x" Then
  620. frmwon.Show
  621. frmwon.Label1.Caption = "X is the winner!!!"
  622. frmwon.Caption = "X is the winner"
  623. ElseIf Text7.Text = "x" And Text8.Text = "x" And Text9.Text = "x" Then
  624. frmwon.Show
  625. frmwon.Label1.Caption = "X is the winner!!!"
  626. frmwon.Caption = "X is the winner"
  627. ElseIf Text9.Text = "x" And Text6.Text = "x" And Text3.Text = "x" Then
  628. frmwon.Show
  629. frmwon.Label1.Caption = "X is the winner!!!"
  630. frmwon.Caption = "X is the winner"
  631. ElseIf Text1.Text = "x" And Text5.Text = "x" And Text9.Text = "x" Then
  632. frmwon.Show
  633. frmwon.Label1.Caption = "X is the winner!!!"
  634. frmwon.Caption = "X is the winner"
  635. ElseIf Text3.Text = "x" And Text5.Text = "x" And Text7.Text = "x" Then
  636. frmwon.Show
  637. frmwon.Label1.Caption = "X is the winner!!!"
  638. frmwon.Caption = "X is the winner"
  639. ElseIf Text2.Text = "x" And Text5.Text = "x" And Text8.Text = "x" Then
  640. frmwon.Show
  641. frmwon.Label1.Caption = "X is the winner!!!"
  642. frmwon.Caption = "X is the winner"
  643. ElseIf Text4.Text = "x" And Text5.Text = "x" And Text6.Text = "x" Then
  644. frmwon.Show
  645. frmwon.Label1.Caption = "X is the winner!!!"
  646. frmwon.Caption = "X is the winner"
  647. ElseIf Text1.Text = "o" And Text2.Text = "o" And Text3.Text = "o" Then
  648. frmwon.Show
  649. frmwon.Label1.Caption = "O is the winner!!!"
  650. frmwon.Caption = "O is the winner!!!"
  651. ElseIf Text1.Text = "o" And Text4.Text = "o" And Text7.Text = "o" Then
  652. frmwon.Show
  653. frmwon.Label1.Caption = "O is the winner!!!"
  654. frmwon.Caption = "O is the winner!!!"
  655. ElseIf Text7.Text = "o" And Text8.Text = "o" And Text9.Text = "o" Then
  656. frmwon.Show
  657. frmwon.Label1.Caption = "O is the winner!!!"
  658. frmwon.Caption = "O is the winner!!!"
  659. ElseIf Text9.Text = "o" And Text6.Text = "o" And Text3.Text = "o" Then
  660. frmwon.Show
  661. frmwon.Label1.Caption = "O is the winner!!!"
  662. frmwon.Caption = "O is the winner!!!"
  663. ElseIf Text1.Text = "o" And Text5.Text = "o" And Text9.Text = "o" Then
  664. frmwon.Show
  665. frmwon.Label1.Caption = "O is the winner!!!"
  666. frmwon.Caption = "O is the winner!!!"
  667. ElseIf Text3.Text = "o" And Text5.Text = "o" And Text7.Text = "o" Then
  668. frmwon.Show
  669. frmwon.Label1.Caption = "O is the winner!!!"
  670. frmwon.Caption = "O is the winner!!!"
  671. ElseIf Text2.Text = "o" And Text5.Text = "o" And Text8.Text = "o" Then
  672. frmwon.Show
  673. frmwon.Label1.Caption = "O is the winner!!!"
  674. frmwon.Caption = "O is the winner!!!"
  675. ElseIf Text4.Text = "o" And Text5.Text = "o" And Text6.Text = "o" Then
  676. frmwon.Show
  677. frmwon.Label1.Caption = "O is the winner!!!"
  678. frmwon.Caption = "O is the winner!!!"
  679. End If
  680. End Sub
  681. Private Sub Text7_Change()
  682. If Text1.Text = "x" And Text2.Text = "x" And Text3.Text = "x" Then
  683. frmwon.Show
  684. frmwon.Label1.Caption = "X is the winner!!!"
  685. frmwon.Caption = "X is the winner"
  686. ElseIf Text1.Text = "x" And Text4.Text = "x" And Text7.Text = "x" Then
  687. frmwon.Show
  688. frmwon.Label1.Caption = "X is the winner!!!"
  689. frmwon.Caption = "X is the winner"
  690. ElseIf Text7.Text = "x" And Text8.Text = "x" And Text9.Text = "x" Then
  691. frmwon.Show
  692. frmwon.Label1.Caption = "X is the winner!!!"
  693. frmwon.Caption = "X is the winner"
  694. ElseIf Text9.Text = "x" And Text6.Text = "x" And Text3.Text = "x" Then
  695. frmwon.Show
  696. frmwon.Label1.Caption = "X is the winner!!!"
  697. frmwon.Caption = "X is the winner"
  698. ElseIf Text1.Text = "x" And Text5.Text = "x" And Text9.Text = "x" Then
  699. frmwon.Show
  700. frmwon.Label1.Caption = "X is the winner!!!"
  701. frmwon.Caption = "X is the winner"
  702. ElseIf Text3.Text = "x" And Text5.Text = "x" And Text7.Text = "x" Then
  703. frmwon.Show
  704. frmwon.Label1.Caption = "X is the winner!!!"
  705. frmwon.Caption = "X is the winner"
  706. ElseIf Text2.Text = "x" And Text5.Text = "x" And Text8.Text = "x" Then
  707. frmwon.Show
  708. frmwon.Label1.Caption = "X is the winner!!!"
  709. frmwon.Caption = "X is the winner"
  710. ElseIf Text4.Text = "x" And Text5.Text = "x" And Text6.Text = "x" Then
  711. frmwon.Show
  712. frmwon.Label1.Caption = "X is the winner!!!"
  713. frmwon.Caption = "X is the winner"
  714. ElseIf Text1.Text = "o" And Text2.Text = "o" And Text3.Text = "o" Then
  715. frmwon.Show
  716. frmwon.Label1.Caption = "O is the winner!!!"
  717. frmwon.Caption = "O is the winner!!!"
  718. ElseIf Text1.Text = "o" And Text4.Text = "o" And Text7.Text = "o" Then
  719. frmwon.Show
  720. frmwon.Label1.Caption = "O is the winner!!!"
  721. frmwon.Caption = "O is the winner!!!"
  722. ElseIf Text7.Text = "o" And Text8.Text = "o" And Text9.Text = "o" Then
  723. frmwon.Show
  724. frmwon.Label1.Caption = "O is the winner!!!"
  725. frmwon.Caption = "O is the winner!!!"
  726. ElseIf Text9.Text = "o" And Text6.Text = "o" And Text3.Text = "o" Then
  727. frmwon.Show
  728. frmwon.Label1.Caption = "O is the winner!!!"
  729. frmwon.Caption = "O is the winner!!!"
  730. ElseIf Text1.Text = "o" And Text5.Text = "o" And Text9.Text = "o" Then
  731. frmwon.Show
  732. frmwon.Label1.Caption = "O is the winner!!!"
  733. frmwon.Caption = "O is the winner!!!"
  734. ElseIf Text3.Text = "o" And Text5.Text = "o" And Text7.Text = "o" Then
  735. frmwon.Show
  736. frmwon.Label1.Caption = "O is the winner!!!"
  737. frmwon.Caption = "O is the winner!!!"
  738. ElseIf Text2.Text = "o" And Text5.Text = "o" And Text8.Text = "o" Then
  739. frmwon.Show
  740. frmwon.Label1.Caption = "O is the winner!!!"
  741. frmwon.Caption = "O is the winner!!!"
  742. ElseIf Text4.Text = "o" And Text5.Text = "o" And Text6.Text = "o" Then
  743. frmwon.Show
  744. frmwon.Label1.Caption = "O is the winner!!!"
  745. frmwon.Caption = "O is the winner!!!"
  746. End If
  747. End Sub
  748. Private Sub Text8_Change()
  749. If Text1.Text = "x" And Text2.Text = "x" And Text3.Text = "x" Then
  750. frmwon.Show
  751. frmwon.Label1.Caption = "X is the winner!!!"
  752. frmwon.Caption = "X is the winner"
  753. ElseIf Text1.Text = "x" And Text4.Text = "x" And Text7.Text = "x" Then
  754. frmwon.Show
  755. frmwon.Label1.Caption = "X is the winner!!!"
  756. frmwon.Caption = "X is the winner"
  757. ElseIf Text7.Text = "x" And Text8.Text = "x" And Text9.Text = "x" Then
  758. frmwon.Show
  759. frmwon.Label1.Caption = "X is the winner!!!"
  760. frmwon.Caption = "X is the winner"
  761. ElseIf Text9.Text = "x" And Text6.Text = "x" And Text3.Text = "x" Then
  762. frmwon.Show
  763. frmwon.Label1.Caption = "X is the winner!!!"
  764. frmwon.Caption = "X is the winner"
  765. ElseIf Text1.Text = "x" And Text5.Text = "x" And Text9.Text = "x" Then
  766. frmwon.Show
  767. frmwon.Label1.Caption = "X is the winner!!!"
  768. frmwon.Caption = "X is the winner"
  769. ElseIf Text3.Text = "x" And Text5.Text = "x" And Text7.Text = "x" Then
  770. frmwon.Show
  771. frmwon.Label1.Caption = "X is the winner!!!"
  772. frmwon.Caption = "X is the winner"
  773. ElseIf Text2.Text = "x" And Text5.Text = "x" And Text8.Text = "x" Then
  774. frmwon.Show
  775. frmwon.Label1.Caption = "X is the winner!!!"
  776. frmwon.Caption = "X is the winner"
  777. ElseIf Text4.Text = "x" And Text5.Text = "x" And Text6.Text = "x" Then
  778. frmwon.Show
  779. frmwon.Label1.Caption = "X is the winner!!!"
  780. frmwon.Caption = "X is the winner"
  781. ElseIf Text1.Text = "o" And Text2.Text = "o" And Text3.Text = "o" Then
  782. frmwon.Show
  783. frmwon.Label1.Caption = "O is the winner!!!"
  784. frmwon.Caption = "O is the winner!!!"
  785. ElseIf Text1.Text = "o" And Text4.Text = "o" And Text7.Text = "o" Then
  786. frmwon.Show
  787. frmwon.Label1.Caption = "O is the winner!!!"
  788. frmwon.Caption = "O is the winner!!!"
  789. ElseIf Text7.Text = "o" And Text8.Text = "o" And Text9.Text = "o" Then
  790. frmwon.Show
  791. frmwon.Label1.Caption = "O is the winner!!!"
  792. frmwon.Caption = "O is the winner!!!"
  793. ElseIf Text9.Text = "o" And Text6.Text = "o" And Text3.Text = "o" Then
  794. frmwon.Show
  795. frmwon.Label1.Caption = "O is the winner!!!"
  796. frmwon.Caption = "O is the winner!!!"
  797. ElseIf Text1.Text = "o" And Text5.Text = "o" And Text9.Text = "o" Then
  798. frmwon.Show
  799. frmwon.Label1.Caption = "O is the winner!!!"
  800. frmwon.Caption = "O is the winner!!!"
  801. ElseIf Text3.Text = "o" And Text5.Text = "o" And Text7.Text = "o" Then
  802. frmwon.Show
  803. frmwon.Label1.Caption = "O is the winner!!!"
  804. frmwon.Caption = "O is the winner!!!"
  805. ElseIf Text2.Text = "o" And Text5.Text = "o" And Text8.Text = "o" Then
  806. frmwon.Show
  807. frmwon.Label1.Caption = "O is the winner!!!"
  808. frmwon.Caption = "O is the winner!!!"
  809. ElseIf Text4.Text = "o" And Text5.Text = "o" And Text6.Text = "o" Then
  810. frmwon.Show
  811. frmwon.Label1.Caption = "O is the winner!!!"
  812. frmwon.Caption = "O is the winner!!!"
  813. End If
  814. End Sub
  815. Private Sub Text9_Change()
  816. If Text1.Text = "x" And Text2.Text = "x" And Text3.Text = "x" Then
  817. frmwon.Show
  818. frmwon.Label1.Caption = "X is the winner!!!"
  819. frmwon.Caption = "X is the winner"
  820. ElseIf Text1.Text = "x" And Text4.Text = "x" And Text7.Text = "x" Then
  821. frmwon.Show
  822. frmwon.Label1.Caption = "X is the winner!!!"
  823. frmwon.Caption = "X is the winner"
  824. ElseIf Text7.Text = "x" And Text8.Text = "x" And Text9.Text = "x" Then
  825. frmwon.Show
  826. frmwon.Label1.Caption = "X is the winner!!!"
  827. frmwon.Caption = "X is the winner"
  828. ElseIf Text9.Text = "x" And Text6.Text = "x" And Text3.Text = "x" Then
  829. frmwon.Show
  830. frmwon.Label1.Caption = "X is the winner!!!"
  831. frmwon.Caption = "X is the winner"
  832. ElseIf Text1.Text = "x" And Text5.Text = "x" And Text9.Text = "x" Then
  833. frmwon.Show
  834. frmwon.Label1.Caption = "X is the winner!!!"
  835. frmwon.Caption = "X is the winner"
  836. ElseIf Text3.Text = "x" And Text5.Text = "x" And Text7.Text = "x" Then
  837. frmwon.Show
  838. frmwon.Label1.Caption = "X is the winner!!!"
  839. frmwon.Caption = "X is the winner"
  840. ElseIf Text2.Text = "x" And Text5.Text = "x" And Text8.Text = "x" Then
  841. frmwon.Show
  842. frmwon.Label1.Caption = "X is the winner!!!"
  843. frmwon.Caption = "X is the winner"
  844. ElseIf Text4.Text = "x" And Text5.Text = "x" And Text6.Text = "x" Then
  845. frmwon.Show
  846. frmwon.Label1.Caption = "X is the winner!!!"
  847. frmwon.Caption = "X is the winner"
  848. ElseIf Text1.Text = "o" And Text2.Text = "o" And Text3.Text = "o" Then
  849. frmwon.Show
  850. frmwon.Label1.Caption = "O is the winner!!!"
  851. frmwon.Caption = "O is the winner!!!"
  852. ElseIf Text1.Text = "o" And Text4.Text = "o" And Text7.Text = "o" Then
  853. frmwon.Show
  854. frmwon.Label1.Caption = "O is the winner!!!"
  855. frmwon.Caption = "O is the winner!!!"
  856. ElseIf Text7.Text = "o" And Text8.Text = "o" And Text9.Text = "o" Then
  857. frmwon.Show
  858. frmwon.Label1.Caption = "O is the winner!!!"
  859. frmwon.Caption = "O is the winner!!!"
  860. ElseIf Text9.Text = "o" And Text6.Text = "o" And Text3.Text = "o" Then
  861. frmwon.Show
  862. frmwon.Label1.Caption = "O is the winner!!!"
  863. frmwon.Caption = "O is the winner!!!"
  864. ElseIf Text1.Text = "o" And Text5.Text = "o" And Text9.Text = "o" Then
  865. frmwon.Show
  866. frmwon.Label1.Caption = "O is the winner!!!"
  867. frmwon.Caption = "O is the winner!!!"
  868. ElseIf Text3.Text = "o" And Text5.Text = "o" And Text7.Text = "o" Then
  869. frmwon.Show
  870. frmwon.Label1.Caption = "O is the winner!!!"
  871. frmwon.Caption = "O is the winner!!!"
  872. ElseIf Text2.Text = "o" And Text5.Text = "o" And Text8.Text = "o" Then
  873. frmwon.Show
  874. frmwon.Label1.Caption = "O is the winner!!!"
  875. frmwon.Caption = "O is the winner!!!"
  876. ElseIf Text4.Text = "o" And Text5.Text = "o" And Text6.Text = "o" Then
  877. frmwon.Show
  878. frmwon.Label1.Caption = "O is the winner!!!"
  879. frmwon.Caption = "O is the winner!!!"
  880. End If
  881. End Sub
  882.